<template>
    <el-container style="width: 1200px;margin: auto">
        <el-header direction="horizontal">
            <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect" router="true">
                <el-menu-item index="/stumemu/choess">已选课程</el-menu-item>
                <el-menu-item index="/stumemu/ischoess">课程选择</el-menu-item>
                <el-menu-item @click="letour">退出</el-menu-item>
            </el-menu>

        </el-header>
        <el-main>
            <div id="stumemu">
                <router-view/>
            </div>
        </el-main>
    </el-container>
</template>

<script>
    import router from "../../router";
    import VueCookies from "vue-cookies";

    export default {
        name: "stumemu",
         methods:{
        letour(){
            sessionStorage.clear();
            VueCookies.set("identity", "");
            router.push({path: '/'});
        }
    }
    }
</script>